<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>API网关后台</title>
    <#include "config.ftl"/>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!-- 头部菜单栏-->
    <div class="layui-header">
        <div class="layui-logo">API网关系统</div>
        <!-- 头部区域 靠左 -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="">控制台</a></li>
            <li class="layui-nav-item"><a href="">商品管理</a></li>
            <li class="layui-nav-item"><a href="">用户</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">其它系统</a>
                <dl class="layui-nav-child">
                    <dd><a href="">邮件管理</a></dd>
                    <dd><a href="">消息管理</a></dd>
                    <dd><a href="">授权管理</a></dd>
                </dl>
            </li>
        </ul>
        <!-- 头部区域 靠右 -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    贤心
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/index/logout">退了</a></li>
        </ul>
    </div>

    <!--左侧菜单栏-->
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  >
                <#list orders as order>
                    <#if (order.children)?exists>
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">${order.title}</a>
                        <dl class="layui-nav-child">
                            <#list order.children as childrenOrder>
                                <dd><a href="javascript:;" class="menus" data-id="menus_id_${childrenOrder.id}" data-href="${childrenOrder.href}" data-title="${childrenOrder.title}" >${childrenOrder.title}</a></dd>
                            </#list>
                        </dl>
                    </li>
                    <#else >
                    <li class="layui-nav-item">
                        <a href="javascript:;" class="menus"  data-id="menus_id_${order.id}"  data-href="${order.href}" data-title="${order.title}" >${order.title}</a>
                    </li>
                    </#if>
                </#list>
                <#--<li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">${testString}</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">列表一</a></dd>
                        <dd><a href="javascript:;">列表二</a></dd>
                        <dd><a href="javascript:;">列表三</a></dd>
                        <dd><a href="">超链接</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">解决方案</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">列表一</a></dd>
                        <dd><a href="javascript:;">列表二</a></dd>
                        <dd><a href="">超链接</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="">云市场</a></li>
                <li class="layui-nav-item"><a href="">发布商品</a></li>-->
            </ul>
        </div>
    </div>


    <!-- 内容主体区域 -->
    <div class="layui-body">
        <div class="layui-tab" lay-filter="main_body" lay-allowclose="true">
            <ul class="layui-tab-title">
                <li class="layui-this" lay-id="menus_id_${fristMenu.id}">${fristMenu.title}</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show"  ><iframe src="${fristMenu.href}" frameborder="0"style="width: 100%; height: 600px;"></iframe></div>
            </div>
        </div>
    </div>

    <!-- 底部区域-->
    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © 我是个大盗贼,什么也不怕~生活很自在,整天乐哈哈! - 底部固定区域
    </div>
</div>
</body>
</html>